package com.sc.pattern.activeobjects;

/**
 * Created  on 2018/1/14.
 * 对应@ActiveObject每个方法
 * @author sc
 */
public abstract class MethodRequest {
    protected final Servant servant;
    protected final FutureResult futureResult;

    public MethodRequest(Servant servant, FutureResult futureResult) {
        this.servant = servant;
        this.futureResult = futureResult;
    }


    public abstract void execute();
}
